namespace Churchtoolkit.Web.MasterPages
{
    using System;
    using System.Web.Security;

    using Churchtoolkit.Utils.MVP;
    using Churchtoolkit.Utils.Navigation;
    using Churchtoolkit.Web.Shell.Presenters;
    using Churchtoolkit.Web.Shell.Views;

    public partial class DefaultMaster : MasterPage<DefaultMasterPresenter>, IDefaultMasterView
    {
        #region [ Events ]

        public void btnSignout_Click(object sender, EventArgs e)
        {
            FormsAuthentication.SignOut();
            FormsAuthentication.RedirectToLoginPage();
        }

        protected void btnLogin_Click(object sender, EventArgs e)
        {
            FormsAuthentication.RedirectToLoginPage();
        }

        protected void btnMyProfile_Click(object sender, EventArgs e)
        {
            Navigator.NavigateTo(Pages.Account_PersonalInfoView);
        }

        protected void btnRegistration_Click(object sender, EventArgs e)
        {
            Navigator.NavigateTo(Pages.Shared_RegistrationView);
        }

        protected void Page_Load(object sender, EventArgs e)
        {
        }

        #endregion

        #region [ Methods ]
        protected string GetDisplayName()
        {
            return string.Empty; //Presenter.GetDisplayName();
        }
        #endregion
    }
}